#!/bin/bash
gcc -fPIC -shared hello.c -o libhello.so
mv ./libhello.so ./lib/libhello.so
export PKG_CONFIG_PATH=/home/php/data/git/gcc_study/pkg-config-demo/lib/pkgconfig
#pkg-config --list-all|grep libhello
export LD_LIBRARY_PATH=/home/php/data/git/gcc_study/pkg-config-demo/lib
go build main.go
./main
